<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
	<title>JTOON</title> 
</head>
<body>	
	
	<h3>
		${comicsTitle} 에피소드 관리 
	</h3>
	
	<form action="${contextPath}/episodeManage" method="post">
		<input type="hidden" name="mode" value="1" />
		<input type="hidden" name="cid" value="${cid}" />
		순서 : <input type="text" name="order" />화 <br />
		제목 : <input type="text" name="title" /><br />
		<input type="submit" value="등록하기" />
	</form>
	
	<a href="${contextPath}/episodeManage?cid=${cid}">
		새로고침 
	</a>
	
	<br />
	
	<a href="${contextPath}/comicsManage">
		만화관리로
	</a>
		
	<c:forEach items="${episodeList}" var="episode">
		<ul>
			<li>
				${episode.order}화 | ${episode.title} | 
				<a href="${contextPath}/episodeManage?cid=${episode.cid}&eid=${episode.eid.id}&mode=3">삭제</a> | 
				<a href="${contextPath}/imgManage?eid=${episode.eid.id}&cid=${cid}">이미지 관리</a>
			</li>
		</ul>
		  
	</c:forEach>	
	
</body>
</html>